import { Component } from '@angular/core';

@Component({
  moduleId: module.id,
  selector: 'my-app',
  template: `
  <div class="mtop">
    <h3>{{title}}</h3>
  </div>
  <nav>
    <a routerLink="/science" routerLinkActive="active">科幻</a>
    <a routerLink="/classic" routerLinkActive="active">经典</a>
    <a routerLink="/comic" routerLinkActive="active">动漫</a>
  </nav>
  <router-outlet></router-outlet>
  `,
  styleUrls: ['./app.component.css']
})
export class AppComponent { title = '电影分享平台'; }
